package com.wenterprises.snkeishiki.player;

import com.wenterprises.snkeishiki.character.Character;

/**
 * Contains the representation of a player, not a character.
 * @author RafaelSilva
 */
public class Player {
    private String name;
    private Character character;
    private RPGSystem system;
    
    /**
     * Player Constructor
     * @param name The player real name
     * @param system The system of game
     * @see RPGSystem
     */
    public Player(String name, RPGSystem system) {
        this.name = name;
        this.system = system;
    }
    
    /**
     * Player Constructor
     * @param name The player real name
     */
    public Player(String name) {
        this(name, RPGSystem.DD35);
    }

    /**
     * Player Constructor
     */
    public Player() {
        this("Player", RPGSystem.DD35);
    }
    
    @Override
    public String toString() {
        String result = "";
        result = String.format("Player %s [%d]", name, system.getShortName());
        return result;
    }
}
